package com.bawie.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bawie.dao.TStudentMapper;
import com.bawie.entity.TStudent;
import com.bawie.service.TStudentService;

@Service(value = "tStudentService")
public class TStudentServiceImpl implements TStudentService {

    @Autowired
    private TStudentMapper<TStudent>tStudentMapper;
    
    @Override
    public Integer insertSelective(TStudent tStudent) throws Exception {
           return this.tStudentMapper.insertSelective(tStudent);
        }

    @Override
    public Integer insertBatch(List<TStudent> tStudent) throws Exception {
           return this.tStudentMapper.insertBatch(tStudent) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tStudentMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tStudentMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(TStudent tStudent) {
           return this.tStudentMapper.updateByPrimaryKeySelective(tStudent);
    }

    @Override
    public TStudent findById(Object id) {
           return (TStudent) this.tStudentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<TStudent> selectByCondition(TStudent tStudent) {
           return (List<TStudent>) this.tStudentMapper.selectByCondition(tStudent);
    }

    @Override
    public Integer selectCountByCondition(TStudent tStudent) {
           return  this.tStudentMapper.selectCountByCondition(tStudent);
    }

}
